From: Matthew Barnes Date: Thu, 6 Nov 2014 18:05:01 +0000 (-0500) Subject: repo: Remove unused remote-cache dir X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1059 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=59fd2b1e436ad89d290ae2b314810877cff5ecf0;p=ostree.git repo: Remove unused remote-cache dir Unused leftover from when ostree had pack files; minor cleanup. https://bugzilla.gnome.org/show_bug.cgi?id=739746 --- diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h index e893c4f8..cce24f55 100644 --- a/src/libostree/ostree-repo-private.h +++ b/src/libostree/ostree-repo-private.h @@ -45,7 +45,6 @@ struct OstreeRepo { GFile *deltas_dir; GFile *uncompressed_objects_dir; int uncompressed_objects_dir_fd; - GFile *remote_cache_dir; GFile *config_file; GFile *transaction_lock_path; diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 948d08d8..2ae893f1 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -104,7 +104,6 @@ ostree_repo_finalize (GObject *object) g_clear_object (&self->uncompressed_objects_dir); if (self->uncompressed_objects_dir_fd != -1) (void) close (self->uncompressed_objects_dir_fd); - g_clear_object (&self->remote_cache_dir); g_clear_object (&self->config_file); g_clear_object (&self->transaction_lock_path); @@ -179,7 +178,6 @@ ostree_repo_constructed (GObject *object) self->deltas_dir = g_file_get_child (self->repodir, "deltas"); self->uncompressed_objects_dir = g_file_get_child (self->repodir, "uncompressed-objects-cache"); self->state_dir = g_file_get_child (self->repodir, "state"); - self->remote_cache_dir = g_file_get_child (self->repodir, "remote-cache"); self->config_file = g_file_get_child (self->repodir, "config"); G_OBJECT_CLASS (ostree_repo_parent_class)->constructed (object); @@ -649,9 +647,6 @@ ostree_repo_create (OstreeRepo *self, if (!g_file_make_directory (self->tmp_dir, cancellable, error)) goto out; - if (!g_file_make_directory (self->remote_cache_dir, cancellable, error)) - goto out; - g_clear_object (&child); child = g_file_get_child (self->repodir, "refs"); if (!g_file_make_directory (child, cancellable, error))